package cn.jobstart.spider.service;

import cn.jobstart.modelExt.SpiderMonitorExt;
import cn.jobstart.modelExt.TalentSubscriptionTaskExt;
import cn.jobstart.pubInter.exception.SkException;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author sunke
 * @version 1.0
 * @Description
 * @date 2023-09-19 16:10
 */
public interface ISpiderService {

    /**
     * 直接通过传过的html 解析
     * @param url
     * @param sourceFlag
     * @param html
     * @param adminId
     * @param adminTruename
     * @param typeFlag 类型备用
     * @throws Exception
     */
    void startHtml(String url,int sourceFlag,String html,String adminId,String adminTruename,int typeFlag) throws Exception;


    /**
     * 人才网职位
     * @param userId
     * @throws Exception
     */
     void startNbrcJob(SpiderMonitorExt spiderMonitor) throws Exception;


    /**
     * 启动人才订阅任务
     * @param talentSubscriptionTaskId
     * @throws SkException
     */
     void startTalentTaskByTalentSubscriptionTaskId(String talentSubscriptionTaskId) throws Exception;

    /**
     * 启动一个51job的任务
     * @param talentSubscriptionTaskId
     * @throws Exception
     */
    void startTalentJob51TaskByTalentSubscriptionTaskId(String talentSubscriptionTaskId) throws Exception;


     void startTalentTaskByTalentSubscriptionTask(TalentSubscriptionTaskExt talentSubscriptionTask) throws Exception;

}
